home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
HPAVC
/
HPAVC CD-ROM.iso
/
RANDPASS.ZIP
/
RANDPASS.PAS
< prev
Wrap
Pascal/Delphi Source File
|
1993-05-25
|
537b
|
23 lines
program RandomPasswordGenerator; {* By Colin Bowern *}
{* Just a random password generator *}
{* for misc. use! *}
uses Dos, Crt;
const pwrdlen = 8; {* Password Length *}
var password : array[1..pwrdlen] of word;
var i : integer;
begin
for i := 1 to pwrdlen do password[i] := 0;
Randomize;
for i := 1 to pwrdlen do begin
repeat
password[i] := Random(126);
until password[i] > 34
end;
for i := 1 to pwrdlen do write(chr(password[i]));
end.